﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace OA.IService
{
    public interface IServiceBase<T>
    {
        IQueryable<T> GetList(Expression<Func<T, bool>> expression);
       // IQueryable<T> GetList<OrderField>(Expression<Func<T, bool>> expression, int pageIndex, int pageSize, out int toalCount, Expression<Func<T, OrderField>> orderField, bool isAsc = true);
        T GetEntity(int id);
        T Add(T entity);
        bool Delete(int id);
        bool Edit(T entity);

    }
}
